package personal.learn;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import personal.learn.config.CountStar;

/**
 * Created by weishaofei on 2017/7/19.
 */
public class Main {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        CountStar countStar = applicationContext.getBean("countStar", CountStar.class);
        System.out.println(countStar.count());
        System.out.println(countStar.count());
        System.out.println(countStar.count());
    }
}
